﻿Namespace DotNetNuke.Modules.Announcements.Model
    Public Module ExtensionMethods
        <System.Runtime.CompilerServices.Extension()> _
        Public Function ToString(ByVal value As System.Nullable(Of DateTime), ByVal format As String, ByVal provider As IFormatProvider) As String
            Return If(value.HasValue, value.Value.ToString(format, provider), "")
        End Function
        <System.Runtime.CompilerServices.Extension()> _
        Public Function ToString(ByVal value As System.Nullable(Of Integer), ByVal format As String, ByVal provider As IFormatProvider) As String
            Return If(value.HasValue, value.Value.ToString(format, provider), "")
        End Function
    End Module
End Namespace
